package com.andeveloper.springdemo.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.Cacheable;

import com.andeveloper.springdemo.model.User;

public interface UserDao {
	@Cacheable(value="userCache", key="#userName")
	public User findUserByName(@Param("userName") String userName);
	public Integer saveUser(User user);
	public Integer addUpVisitTimes(@Param("userId") Integer userId);
	public Integer addUser(User user);
}
